//
//  UIViewController+Extension.m
//  ForestPack
//
//  Created by jimmy on 2018/7/5.
//  Copyright © 2018年 郑洲. All rights reserved.
//

#import "UIViewController+Extension.h"

@implementation UIViewController (Extension)

- (void)transBgNavBar:(BOOL)isTrans
{
    // 修改 背景 达到 透明的效果
    if (isTrans) {
        [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
    }else{
        [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
    }
    
    // 隐藏 底部的线
    self.navigationController.navigationBar.shadowImage = [UIImage new];
}

@end
